<%@page import="com.mmy.domain.sys.TSysUser"%>
<%@page import="com.mmy.domain.hotel.THotelBase"%>
<%@page import="com.mmy.domain.hotel.VHotelBase"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
 <%
 	TSysUser tSysUser = (TSysUser)session.getAttribute("tSysUser");
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/include1.jsp"></jsp:include>
		<title>酒店信息</title>
	</head>
	<body>
<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/FrontHeader.jsp"></jsp:include>
 <div id="index-back">
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Body Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom">
			<article>
				<header class="frontbg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
					<div class="page-header container">
					<div class="row">
					<div class="span-1 col" id="websitesearchdiv" >
						
						</div>	
						<div class="span-11 col" id="websitesearchdiv" >
						<h2 class="h2color" >酒店详情</h2>		
						</div>		
					 </div >
					 </div>
				</header>

				<section class="container">
				
				<div class="information">
			<h4 class="info-h4">
			酒店详细信息
			</h4>
			
				<div class="input-container" id="scenicrow" >
				<table class="hotelinfo-table" >
				<tr >
					
					<td colspan="2" rowspan="6" width="20%" >
					<p style="border: #E0EDD3 solid 1px;height:95%;width: 95%; text-align: center;">
					<img   src="imges/${dbHotelBase.getImgPath() }" alt="${dbHotelBase.getHotelName()}" title="${dbHotelBase.getHotelName()}"/>
					
					</p>
					</td>
					<th width="10%"><label>酒店名称</label></th>
					<td colspan="5" width="70%" >
						
						<label>${dbHotelBase.getHotelName()}</label>
					</td>
				</tr>
				<tr>
					<th width="10%"><label>酒店代号</label></th>
					<td colspan="5" width="70%" >
						
						<label>${dbHotelBase.getHotelCode()}</label>
					</td>
				</tr>
					<tr>
				<th width="10%"><label>酒店星级</label></th>
					<td colspan="2" width="25%">
						<label>${dbHotelBase.getRate()}</label>
					</td>
					<th width="10%"><label>联系人</label></th>
					<td colspan="2" width="25%">
						<label>${dbHotelBase.getContact()}</label>
					</td>
					
				</tr>
					<tr>
				
					<th width="10%"><label>联系电话</label></th>
					<td colspan="2" width="25%">
						<label>${dbHotelBase.getTel()}</label>
					</td>
					
					<th width="10%"><label>所属公司</label></th>
					<td colspan="2" width="25%">
						<label>${strOrgName}</label>
					</td>
				</tr>
				<tr>
				<th width="10%"><label>建筑年份</label></th>
					<td  colspan="2" width="25%">
						<label>${dbHotelBase.getYear()}</label>
					</td>
					<th width="10%"><label>房间总数量</label></th>
					<td colspan="2" width="25%">
						<label>${dbHotelBase.getRoom()}</label>
					</td>
				</tr>
				<tr>
					<th width="10%"><label>酒店类型</label></th>
					<td colspan="2" width="25%">
					<c:if test="${dbHotelBase.getType()==0}"><label>星级酒店</label></c:if>
			                <c:if test="${dbHotelBase.getType()==1}"><label>快捷酒店</label></c:if>
			                <c:if test="${dbHotelBase.getType()==2}"><label>民宿</label></c:if>
			                <c:if test="${dbHotelBase.getType()==3}"><label>别墅</label></c:if>
				
					</td>
					
					<th width="10%"><label>楼层高度</label></th>
					<td colspan="2" width="25%">
						<label>${dbHotelBase.getHeight()}</label>
					</td>
				</tr>
				<tr>
				
					<th width="10%"><label>区域名称</label></th>
					<td width="40%" colspan="3">
						<label>${strProvince }${strCity }${dbHotelBase.getZoneName()}</label>
					</td>
					<th width="10%"><label>具体地址</label></th>
					<td width="40%" colspan="3">
						<label>${dbHotelBase.getAddress()}</label>
					</td>
					
				</tr>
		
				<tr>
					<th><label>酒店介绍</label></th>
					<td width="90%" colspan="7">
						<label>${dbHotelBase.getIntro()}</label>
					</td>
					
				</tr>
				<tr>
				<th><label>订房须知</label></th>
					<td colspan="7">
						<label>${dbHotelBase.getNotice()}</label>
					</td>
				</tr>
				<tr>
				<th><label>酒店设施</label></th>
					<td colspan="7">
						<label>${dbHotelBase.getFacilities()}</label>
					</td>
				</tr>
					<tr>
				<th><label>酒店评价</label></th>
					<td colspan="7">
						<label>${dbHotelBase.getEvaluation()}</label>
					</td>
				</tr>
				<tr>
					<th><label>备注</label></th>
					<td colspan="7">
						<label>${dbHotelBase.getMemo()}</label>
					</td>
				</tr>	
					
				</table>
				
						
							
				
				</div>
				<h4 class="info-h4">
					房间信息及计划
						</h4>
				<div class="input-container" id="scenicrow">
			<div style="width: 90%;">
			<c:forEach items="${lstHotelRoom}" var="lstHotelRoom" varStatus="status">
				
				<table class="hotelinfo-table" >
				<tr>
				<th colspan="8">
				<h5 class="info-h5">
				${lstHotelRoom.getRoomName() }
				</h5>
				</th>
				</tr>
					<tr >
					
					<td colspan="2" rowspan="5" width="20%" >
					<p style="border: #E0EDD3 solid 1px;height:95%;width: 95%; ">
					<img   src="imges/${lstHotelRoom.getImgPath() }" alt="${lstHotelRoom.getRoomName()}" title="${lstHotelRoom.getRoomName()}"/>
					
					</p>
					</td>
					<th width="10%"><label>房间名称</label></th>
					<td colspan="5" width="70%" >
						
						<label>${lstHotelRoom.getRoomName()}</label>
					</td>
				</tr>
			
					<tr>
				<th width="10%"><label>房间类型</label></th>
					<td colspan="2" width="25%">
					<c:if test="${lstHotelRoom.getRoomType()==0}"><label>单人间</label></c:if>
			        <c:if test="${lstHotelRoom.getRoomType()==1}"><label>大床房间</label></c:if>
			        <c:if test="${lstHotelRoom.getRoomType()==2}"><label>双人间</label></c:if>
			        <c:if test="${lstHotelRoom.getRoomType()==3}"><label>三人间</label></c:if>
				 	<c:if test="${lstHotelRoom.getRoomType()==4}"><label>套房</label></c:if>
				
						
					</td>
					<th width="10%"><label>房间大小</label></th>
					<td colspan="2" width="25%">
						<label>${lstHotelRoom.getRoomSize()}</label>
					</td>
					
				</tr>
					<tr>
				
					<th width="15%"><label>所在楼层</label></th>
					<td colspan="2" width="20%">
						<label>${lstHotelRoom.getOnFloor()}</label>
					</td>
					<th width="15%"><label>适合住宿人数</label></th>
					<td colspan="2" width="20%">
						<label>${lstHotelRoom.getNumber()}</label>
					</td>
				</tr>
				<tr>
				<th width="10%"><label>是否有窗</label></th>
					<td  colspan="2" width="25%">
					<c:if test="${lstHotelRoom.getWindows()==0}"><label>否</label></c:if>
			        <c:if test="${lstHotelRoom.getWindows()==1}"><label>是</label></c:if>
			               
					</td>
					<th width="10%"><label>是否有WIFI</label></th>
					<td colspan="2" width="25%">
					<c:if test="${lstHotelRoom.getWifi()==0}"><label>否</label></c:if>
			        <c:if test="${lstHotelRoom.getWifi()==1}"><label>是</label></c:if>
			       
					</td>
				</tr>
				<tr>
					<th width="10%"><label>是否有宽带</label></th>
					<td colspan="2" width="25%">
					<c:if test="${lstHotelRoom.getNetwork()==0}"><label>否</label></c:if>
			                <c:if test="${lstHotelRoom.getNetwork()==1}"><label>是</label></c:if>
			              
					</td>
					
					<th width="10%"><label>是否含早餐</label></th>
					<td colspan="2" width="25%">
					  <c:if test="${lstHotelRoom.getBreakfast()==2}"><label>否</label></c:if>
			                <c:if test="${lstHotelRoom.getBreakfast()==3}"><label>是</label></c:if>
				
					</td>
				</tr>
			
				<tr>
					<th><label>备注</label></th>
					<td colspan="7">
						<label>${lstHotelRoom.getMemo()}</label>
					</td>
				</tr>	
				</table>
				<hr style="border: 1px solid #dee2e6 ; width: 80%;margin-left:10%;">
				
				<table class="info-table"  style="width: 90%;" >
					<tr>
						
						<th width="10%">服务标准</th>
						<th width="15%">开始日期</th>			
						<th width="15%">结束日期</th>
						<th width="10%">价格(元)</th>			
						<th width="10%">数量</th>			
						<th width="40%">备注</th>			
					
					</tr>
					<c:forEach var="lstHotelPlan" items="${lstHotelPlan}">
					<c:if test="${lstHotelPlan.getRoomID()==lstHotelRoom.getRoomID()}">
					<tr>
						
						<td>
						${lstHotelPlan.getService()}</td>
						<td>
						<fmt:formatDate value='${lstHotelPlan.getStartDate()}' pattern='yyyy-MM-dd'/>
						</td>
						<td>
						<fmt:formatDate value='${lstHotelPlan.getEndDate()}' pattern='yyyy-MM-dd'/>
						</td>
						
						<td>${lstHotelPlan.getPrice()}</td>
						
						<td>${lstHotelPlan.getNumber()}</td>
						<td>${lstHotelPlan.getMemo()}</td>
					</tr>
					</c:if>
				</c:forEach>	
				</table>
			
				</c:forEach>
				</div>
				</div>	
					<center>
				<input type="button" class="btn" value="预留" onclick="" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 	
			</div>		
				
				</section>
					
				
		 	</article>
		</main>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Body End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
</div>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<!-- /st-container -->
	
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Script Embed Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Slider -->
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>

</body>

</html>